package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 试卷与试题连接表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_paper_connect_subject")
public class ExamPaperConnectSubject {

    /**
     * 连接
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联试卷
     */
    @TableField(value = "exam_paper_id")
    private Integer examPaperId;

    /**
     * 关联试题
     */
    @TableField(value = "subject_id")
    private Integer subjectId;

}
